!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@wix/image-kit"),require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[ClassicSection]",["imageClientApi","react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[ClassicSection]"]=t(require("@wix/image-kit"),require("react")):e["rb_wixui.thunderbolt[ClassicSection]"]=t(e.__imageClientApi__,e.React)}("undefined"!=typeof self?self:this,(function(e,t){return function(){var a={42662:function(t){"use strict";t.exports=e},5329:function(e){"use strict";e.exports=t},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.entries(e).reduce(((e,[t,a])=>(t.includes("data-")&&(e[t]=a),e)),{});const d=13,c=27;function u(e){return t=>{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}u(32),u(d),u(c);const m=(...e)=>e.map((e=>e?`wixui-${e}`:"")).join(" "),g="mesh-container-content",p="inline-content",f=e=>r().createElement("div",{key:e.props.id+"-rotated-wrapper","data-mesh-id":e.props.id+"-rotated-wrapper"},e);var h=e=>{const{id:a,className:n,wedges:i=[],rotatedComponents:o=[],children:d,fixedComponents:c=[],extraClassName:u="",renderRotatedComponents:m=f}=e,h=r().Children.toArray(d()),v=[],y=[];h.forEach((e=>c.includes(e.props.id)?v.push(e):y.push(e)));const b=(e=>{const{wedges:t,rotatedComponents:a,childrenArray:n,renderRotatedComponents:i}=e,o=a.reduce(((e,t)=>({...e,[t]:!0})),{});return[...n.map((e=>{return o[(t=e,t.props.id.split("__")[0])]?i(e):e;var t})),...t.map((e=>r().createElement("div",{key:e,"data-mesh-id":e})))]})({childrenArray:y,rotatedComponents:o,wedges:i,renderRotatedComponents:m});return r().createElement("div",t()({},s(e),{"data-mesh-id":a+"inlineContent","data-testid":p,className:l(n,u)}),r().createElement("div",{"data-mesh-id":a+"inlineContent-gridContainer","data-testid":g},b),v)},v="HlRz5e",y=n(42662);const{STATIC_MEDIA_URL:b}=y,E=({fittingType:e,src:t,target:a,options:r})=>{const n=y.getPlaceholder(e,t,a,{...r,autoEncode:!0});return n?.uri&&!/^[a-z]+:/.test(n.uri)&&(n.uri=`${b}${n.uri}`),n},x=/^[a-z]+:/;var I=e=>{const{id:t,containerId:r,uri:n,alt:i,name:o="",role:l,width:s,height:d,displayMode:c,devicePixelRatio:u,quality:m,alignType:g,bgEffectName:p="",focalPoint:f,upscaleMethod:h,className:y="",crop:I,imageStyles:w={},targetWidth:M,targetHeight:S,targetScale:N,onLoad:C=(()=>{}),onError:_=(()=>{}),shouldUseLQIP:P,containerWidth:O,containerHeight:k,getPlaceholder:T,isInFirstFold:R,placeholderTransition:L,socialAttrs:A,isSEOBot:j,skipMeasure:W,lazyLoadImgExperimentOpen:q,hasAnimation:B,allowWEBPTransform:z}=e,F=a.useRef(null);let D="";const H="blur"===L,$=a.useRef(null);if(!$.current)if(T||P||R||j){const e={upscaleMethod:h,...m||{},shouldLoadHQImage:R,isSEOBot:j,hasAnimation:B,allowWEBPTransform:z};$.current=(T||E)({fittingType:c,src:{id:n,width:s,height:d,crop:I,name:o,focalPoint:f},target:{width:O,height:k,alignment:g,htmlTag:"img"},options:e}),D=!$.current.transformed||R||j?"":"true"}else $.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const U=!j&&(T||P)&&!R&&$.current.transformed,V=a.useMemo((()=>JSON.stringify({containerId:r,...r&&{containerId:r},...g&&{alignType:g},...W&&{skipMeasure:!0},displayMode:c,...O&&{targetWidth:O},...k&&{targetHeight:k},...M&&{targetWidth:M},...S&&{targetHeight:S},...N&&{targetScale:N},isLQIP:U,isSEOBot:j,lqipTransition:L,imageData:{width:s,height:d,uri:n,name:o,displayMode:c,hasAnimation:B,...m&&{quality:m},...u&&{devicePixelRatio:u},...f&&{focalPoint:f},...I&&{crop:I},...h&&{upscaleMethod:h}}})),[r,g,W,c,k,O,M,S,N,U,j,L,s,d,n,o,m,u,f,I,h,B]),J=$.current,K=J?.uri,Y=J?.srcset,Q=J.css?.img,Z=`${v} ${y}`;a.useEffect((()=>{const e=F.current;C&&e?.currentSrc&&e?.complete&&C({target:F.current})}),[]);const G=J&&!J?.transformed?`max(${s}px, 100%)`:M?`${M}px`:null;return a.createElement("wow-image",{id:t,class:Z,"data-image-info":V,"data-bg-effect-name":p,"data-has-ssr-src":D,"data-animate-blur":!j&&U&&H?"":void 0,style:G?{"--wix-img-max-width":G}:{}},a.createElement("img",{src:K,ref:F,alt:i||"",role:l,style:{...Q,...w},onLoad:C,onError:_,...O&&{width:O},...k&&{height:k},...A,...R?{srcSet:Y?.dpr?.map((e=>x.test(e)?e:`${b}${e}`)).join(", "),fetchpriority:"high"}:q?{loading:"lazy"}:{}}))};var w=e=>{var t,r,n;const{className:i,customIdPrefix:o,getPlaceholder:l,hasAnimation:s,allowWEBPTransform:d,...c}=e,u=a.useMemo((()=>JSON.stringify({containerId:c.containerId,alignType:c.alignType,fittingType:c.displayMode,hasAnimation:s,imageData:{width:c.width,height:c.height,uri:c.uri,name:c.name,...c.quality&&{quality:c.quality},displayMode:c.displayMode}})),[c,s]),m=a.useRef(null);m.current||(m.current=l?l({fittingType:c.displayMode,src:{id:c.uri,width:c.width,height:c.height,name:c.name},target:{width:c.containerWidth,height:c.containerHeight,alignment:c.alignType,htmlTag:"bg"},options:{hasAnimation:s,allowWEBPTransform:d}}):{uri:void 0,css:{img:{}},attr:{img:{},container:{}}});const g=m.current,p=null!=(t=null==g?void 0:g.uri)?t:"",f=null!=(r=null==(n=g.css)?void 0:n.container)?r:{},h=Object.assign(p?{backgroundImage:"url("+p+")"}:{},f);return a.createElement("wix-bg-image",{id:""+(o||"bgImg_")+c.containerId,class:i,style:h,"data-tiled-image-info":u,"data-has-bg-scroll-effect":c.hasBgScrollEffect||"","data-bg-effect-name":c.bgEffectName||""})};const M=new RegExp("<%= compId %>","g"),S=(e,t)=>e.replace(M,t);var N=e=>null==e?void 0:e.replace(":hover",""),C="bX9O_S",_="Z_wCwr",P="Jxk_UL",O="K8MSra",k="YTb3b4";const T={quality:{unsharpMask:{radius:.33,amount:1,threshold:0}},devicePixelRatio:1};var R=e=>{const{id:r,videoRef:n,videoInfo:i,posterImageInfo:o,muted:s,preload:d,loop:c,alt:u,isVideoEnabled:m,getPlaceholder:g,extraClassName:p=""}=e;i.containerId=N(i.containerId);const f=a.useMemo((()=>JSON.stringify(i)),[i]),h=a.createElement(a.Fragment,null,o.filterEffectSvgString&&a.createElement("svg",{id:"svg_"+i.containerId,className:k},a.createElement("defs",{dangerouslySetInnerHTML:{__html:S(o.filterEffectSvgString,i.containerId)}})),a.createElement(I,t()({key:i.videoId+"_img",id:o.containerId+"_img",className:l(_,P,"bgVideoposter",p),imageStyles:{width:"100%",height:"100%"}},o,T,{getPlaceholder:g})));return m?a.createElement("wix-video",{id:r,"data-video-info":f,class:l(C,"bgVideo",p)},a.createElement("video",{key:i.videoId+"_video",ref:n,id:i.containerId+"_video",className:O,crossOrigin:"anonymous","aria-label":u,playsInline:!0,preload:d,muted:s,loop:c,tabIndex:-1}),h):h},L="SUz0WK";var A=e=>{const{id:t,containerId:r,pageId:n,children:i,bgEffectName:o="",containerSize:l}=e;return a.createElement("wix-bg-media",{id:t,class:L,"data-container-id":r,"data-container-size":((null==l?void 0:l.width)||0)+", "+((null==l?void 0:l.height)||0),"data-page-id":n,"data-bg-effect-name":o},i)};const j="bgOverlay";var W="m4khSP",q="FNxOn5";var B=e=>{const{imageOverlay:r}=e;return a.createElement("div",{"data-testid":j,className:W},r&&a.createElement(w,t()({customIdPrefix:"bgImgOverlay_",className:q},r)))};const z="bgLayers",F="colorUnderlay",D="mediaPadding",H="canvas";var $="MW5IWV",U="N3eg0s",V="Kv1aVt",J="dLPlxY",K="VgO9Yg",Y="LWbAav",Q="yK6aSC",Z="K_YxMd",G="NGjcJN",X="mNGsUM";const ee="bgImage";var te=e=>{const{videoRef:r,canvasRef:n,hasBgFullscreenScrollEffect:i,image:o,backgroundImage:s,backgroundMedia:d,video:c,backgroundOverlay:u,shouldPadMedia:m,extraClass:g="",shouldRenderUnderlay:p=!c,reducedMotion:f=!1,getPlaceholder:h}=e,{onImageLoad:v}=(e=>{let{onReady:t,image:r}=e;return(0,a.useEffect)((()=>{t&&!r&&t()}),[t,r]),{onImageLoad:e=>{null!=r&&r.onLoad&&r.onLoad(e),t&&t()}}})(e),y=N(e.containerId),b="img_"+N(y),E=o&&a.createElement(I,t()({id:b,className:l(V,J,X,ee),imageStyles:{width:"100%",height:"100%"},getPlaceholder:h},o,{onLoad:v})),x=s&&a.createElement(w,t()({},s,{containerId:y,className:l(V,J,X,ee),getPlaceholder:h})),M=c&&a.createElement(R,t()({id:"videoContainer_"+y},c,{extraClassName:Q,reducedMotion:f,videoRef:r,getPlaceholder:h})),S=a.createElement(a.Fragment,null,E,x,M,n&&a.createElement("canvas",{id:y+"webglcanvas",ref:n,className:l(Z,"webglcanvas"),"aria-label":(null==c?void 0:c.alt)||"",role:"presentation","data-testid":H})),C=d?a.createElement(A,t()({id:"bgMedia_"+y},d),S):a.createElement("div",{id:"bgMedia_"+y,className:K},S),_=u&&a.createElement(B,u);return a.createElement("div",{id:z+"_"+y,"data-hook":z,className:l($,g,{[U]:i})},p&&a.createElement("div",{"data-testid":F,className:l(Y,V)}),m?a.createElement("div",{"data-testid":D,className:G},C,_):a.createElement(a.Fragment,null,C,_))},ae="dkukWC",re="FRCqDF",ne="xnZvZH",ie="MBOSCN";const oe=(e,t,r)=>{const n=((e,t)=>e?[...Array(1+(t||0)).keys()].reverse().map((e=>a.createElement("div",{key:"divider-layer-"+e,style:{"--divider-layer-i":e},className:re,"data-testid":"divider-layer-"+e,"data-divider-layer":e}))):null)(!!t,r);return t?a.createElement("div",{className:l(ae,{[ne]:"top"===e,[ie]:"bottom"===e}),"data-testid":e+"-divider"},n):null};var le=e=>{var t,r;const n=a.useMemo((()=>{var t;return oe("top",null==e?void 0:e.hasTopDivider,null==e||null==(t=e.topLayers)?void 0:t.size)}),[null==e?void 0:e.hasTopDivider,null==e||null==(t=e.topLayers)?void 0:t.size]),i=a.useMemo((()=>{var t;return oe("bottom",null==e?void 0:e.hasBottomDivider,null==e||null==(t=e.bottomLayers)?void 0:t.size)}),[null==e?void 0:e.hasBottomDivider,null==e||null==(r=e.bottomLayers)?void 0:r.size]);return a.createElement(a.Fragment,null,n,i)};var se={root:"section"},de="Oqnisf",ce="cM88eO",ue="YtfWHd";const me=(e,n)=>{const{id:i,fillLayers:o={},className:d,customClassNames:c=[],meshProps:u={wedges:[],rotatedComponents:[]},anchorUrlFragment:g,children:p,onMouseEnter:f,onMouseLeave:v,onClick:y,onDblClick:b,getPlaceholder:E,a11y:x={},onStop:I,onReady:w,dividers:M}=e,S={onMouseEnter:f,onMouseLeave:v,onClick:y,onDoubleClick:b},N=o.hasBgFullscreenScrollEffect,C=function(e,t,a){const n=r().useRef(null),i=r().useRef(null);return t?i.current||(i.current={play:()=>n.current?.play(),load:()=>n.current?.load(),pause:()=>n.current?.pause(),stop:()=>{n.current&&(n.current.pause(),n.current.currentTime=0,a&&a(n.current))}}):i.current=null,r().useImperativeHandle(e,(()=>i.current||{load(){},stop(){}})),n}(n,!!o.video,I),{tabindex:_,...P}=x;return a.createElement("section",t()({id:i},s(e),S,P,((e={})=>{const t=e.tabIndex??e.tabindex??void 0;return void 0!==t?{tabIndex:Number(t)}:{}})(x),{className:l(de,d,m(se.root,...c)),"data-block-level-container":"ClassicSection"}),g&&a.createElement("div",{className:ue,id:g}),a.createElement(te,t()({},o,{onReady:w,getPlaceholder:E,videoRef:C})),M&&a.createElement(le,M),a.createElement(h,t()({id:i},u,{extraClassName:l({[ce]:N})}),p))};const ge={ClassicSection:{component:a.forwardRef(me)}}}(),i}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[ClassicSection].562218eb.bundle.min.js.map